import request from '@/plugins/axios'

/**
 * 合同分页查询
 * @param {Object} query 
 */
export const getContractList = query => {
  return request({
    url: '/api/lessorcontractpayable/getLessorContractPageList',
    method: 'get',
    params: query
  })
}

/**
 * 分页查询核算信息列表
 * @param {Obj} query 
 */
export const getAccountList = query => {
  return request({
    url: '/api/lessorcontractpayable/page',
    method: 'get',
    params: query
  })
}


/**
 * 获取核算合同所有数据
 * @param {String} contractId 合同id
 */
export const getContractDetails = contractId => {
  return request({
    url: `/api/lessorcontractpayable/checkList/${contractId}`,
    method: 'get'
  })
}